﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BeniBastanYaratProject.Yonetim
{
    public partial class UrunSil : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        DBBaglantiDataContext db = new DBBaglantiDataContext();

        protected void btnurunbul_Click(object sender, EventArgs e)
        {

            string barkot = TextBox1.Text;

            var Sorgu = (from x in db.Urunlers where x.UrunBarkod ==barkot select x.UrunID).FirstOrDefault();

     

            Response.Redirect("UrunsilDetay.aspx?uid="+Sorgu);

        }
    }
}